package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Habitus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HabitusDao {
    Page<Map<String, Object>> findByHabitusCondition(String queryString);

    List<Habitus> findAllHabitus();

    void insertReport(Map<String, Object> report);

    void insertHabitusStatus(@Param("habituses") List<Habitus> habituses, @Param("rid")Integer id);

    void deleteStatusByRid(Integer id);

    void deleteReportByid(Integer id);

    Map<String, Object> findOneReportById(Integer id);

    void updateHabitusStatus(@Param("habituses")List<Habitus> habitus,@Param("rid") Integer id);
}
